home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / DateCalc / datum.jar / Datum.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-11-29  |  1.4 KB  |  38 lines

  1. import javax.microedition.lcdui.Display;
  2. import javax.microedition.midlet.MIDlet;
  3.  
  4. public class Datum extends MIDlet {
  5.    private StartForm startForm;
  6.    private InputForm inputForm;
  7.    private InfoForm infoForm;
  8.    public String appName = "DateCalc V0.9.1";
  9.  
  10.    protected void destroyApp(boolean flag) {
  11.       ((MIDlet)this).notifyDestroyed();
  12.    }
  13.  
  14.    protected void pauseApp() {
  15.    }
  16.  
  17.    protected void startApp() {
  18.       this.startForm = new StartForm(this);
  19.       this.inputForm = new InputForm(this.appName);
  20.       this.infoForm = new InfoForm(this.appName);
  21.       this.inputForm.setMidlet(this);
  22.       this.infoForm.setMidlet(this);
  23.       this.viewStartForm();
  24.    }
  25.  
  26.    public void viewStartForm() {
  27.       Display.getDisplay(this).setCurrent(this.startForm);
  28.    }
  29.  
  30.    public void viewInputForm() {
  31.       Display.getDisplay(this).setCurrent(this.inputForm);
  32.    }
  33.  
  34.    public void viewInfoForm() {
  35.       Display.getDisplay(this).setCurrent(this.infoForm);
  36.    }
  37. }
  38.